#include <iostream>
using namespace std;

int t;
int n;

int main (){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cin >> t;
    while (t--){
        cin >> n;
        int a;
        for (int i=0;i<n;i++){
            cin >> a;
        }
        cout << 0 << endl;
    }
    return 0;
}